/**
 * @author Lei
 * @create 2022-05-22 16:44
 */
public class ControllerGetBook extends Controller {


    public ControllerGetBook(Library m) {
        super(m);
    }


    public String getBook(String name) {
        try {
            int book = m.getBook(name);
            return book + "";
        } catch (UnknownUserException e) {
            return e.getMessage();
        }
    }
}
